#ifndef _MSG_H_
#define _MSG_H_


#define ERRMSG_UNIMPLEMENT				"unimplement"
#define ERRMSG_UNREGISTERED_EXTENSION			"unregistered extension"
#define ERRMSG_USED_EXTENSION				"used extension"
#define ERRMSG_ALLOC_SPACE				"alloc space"
#define ERRMSG_NOFOUND_EXTENSION			"nofound extension"
#define ERRMSG_NOFOUND_CHANNEL				"nofound channel"
#define ERRMSG_NOFOUND_PEER_CHANNEL			"nofound peer channel"
#define ERRMSG_NOFOUND_AGENT				"nofound agent"
#define ERRMSG_NOFOUND_QUEUE				"nofound queue"
#define ERRMSG_NOFOUND_MEETING				"nofound meeting"
#define ERRMSG_NOFOUND_IVR				"nofound ivr"
#define ERRMSG_NOFOUND_SPY_ID				"nofound spy id"
#define ERRMSG_NOFOUND_FAX_ID				"nofound fax id"
#define ERRMSG_NOACTIVE_CHANNEL				"noactive channel"
#define ERRMSG_NOAVAIL_MEETING				"noavail meeting"
#define ERRMSG_JOIN_QUEUE				"join queue"
#define ERRMSG_EXEC					"exec"
#define ERRMSG_DIALOUT_NOPERMIT				"dialout no permit"
#define ERRMSG_INVALID_PARAMETER			"invalid parameter"
#define ERRMSG_INVALID_STATE				"invalid state"
#define ERRMSG_INVALID_PHONE_MODE			"invalid phone mode"
#define ERRMSG_INVALID_DIGIT				"invalid digit"
#define ERRMSG_INVALID_CHANNEL				"invalid channel"
#define ERRMSG_INVALID_PEER_TYPE			"invalied peer type"
#define ERRMSG_AGENT_NO_OFFHOOK				"agent not off-hook"
#define ERRMSG_AGENT_NO_HOLD				"agent not hold"
#define ERRMSG_AGENT_NO_READY				"agent not ready"
#define ERRMSG_AGENT_NO_EXTENSION			"agent haven't extension"
#define ERRMSG_AGENT_NO_MONITOR				"agent not monitor"
#define ERRMSG_SET_VAR					"set var"
#define ERRMSG_GET_VAR					"get var"
#define ERRMSG_OUT_OF_LICENSE				"out of license"

#define MSG_LEN						8192
#define MSG_NLEN					256
#define MSG_VLEN					256
#define MSG_OK						0
#define MSG_ERROR					-1


#endif
